FROM centos

WORKDIR /app 
 
ADD jxyzwgcase-pro.jar /app/app.jar
RUN yum -y install java
RUN groupadd -g 18345 ado 

RUN useradd -u 18345 -g 18345 -s /sbin/nologin ado

USER ado 

ENV JAVA_OPTS="-Dspring.config.location=file:/app/application.yml"

CMD ["java","-jar","app.jar"]